<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ValidationMessage Sample
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>ValidationMessage Sample</h2>

    <% using (Html.BeginForm()) { %>
    Title: <%= Html.TextBox("booktitle") %> <%= Html.ValidationMessage("booktitle")%> <br /><br />
    Summary: <%= Html.ValidationMessage("summary","*")%><br /><br />
    <%= Html.TextArea("summary") %> <br /><br />
    Press <input type="submit" /> to see the validation messages.
    <% } %>

</asp:Content>
